package com.ktjiaoyu.mapper;

import com.ktjiaoyu.entity.StorageRecord;
import com.ktjiaoyu.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 黄军艳
 * @version 1.0
 * @date 2024/12/20  9:46
 */
public interface StorageRecordMapper {
    /**
     * 分页查询入库单信息
     * @param storageRecord
     * @param pageBegin
     * @param pageSize
     * @return
     */
    public List<StorageRecord> getPageList(@Param("storageRecord") StorageRecord storageRecord,
                                  @Param("pageBegin") Integer pageBegin,
                                  @Param("pageSize") Integer pageSize);

    /**
     * 根据条件查询总数据量
     * @param storageRecord
     * @return
     */
    public Integer countRecord(@Param("storageRecord") StorageRecord storageRecord);

    public int insert(StorageRecord storageRecord);

    public int update(StorageRecord storageRecord);

    /**
     * 详情
     * @param id
     * @return
     */
    public StorageRecord selectById(@Param("id") Long id);

    //根据入库编号查重
    public StorageRecord selectCode(@Param("srCode") String srCode);

    public int delete(@Param("id") Long id);
}
